package cn.heyige.backend.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "用户登录请求（增强版）")
public class UserLoginRequestV2 {
    
//    @NotBlank(message = "手机号不能为空")
//    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    @Schema(description = "手机号", example = "13800138000")
    private String phone;
    
    @Schema(description = "密码（密码登录时必填）", example = "123456Aa")
    private String password;
    
//    @Pattern(regexp = "^\\d{6}$", message = "验证码必须为6位数字")
    @Schema(description = "短信验证码（验证码登录时必填）", example = "123456")
    private String verificationCode;
    
//    @NotBlank(message = "登录类型不能为空")
    @Schema(description = "登录类型", allowableValues = {"PASSWORD", "SMS_CODE"})
    private String loginType;

}